package com.lemon.components.wechart.order.supporter;

import com.lemon.components.wechart.enums.MsgTypeEnum;
import com.lemon.components.wechart.order.supporter.msgContent.MpnewsContent;

public class SendMpnewsMsgOrder extends SendMsgOrder {

	// openid
	private String touser;
	private MsgTypeEnum msgtype;
	private MpnewsContent mpnews;

	@Override
	public void check() {
		validateHasText(touser, "touser");
		validateNotNull(msgtype, "msgtype");
		validateNotNull(mpnews, "mpnews");
	}

	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public MsgTypeEnum getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(MsgTypeEnum msgtype) {
		this.msgtype = msgtype;
	}

	public MpnewsContent getMpnews() {
		return mpnews;
	}

	public void setMpnews(MpnewsContent mpnews) {
		this.mpnews = mpnews;
	}

	@Override
	public String toString() {
		return "SendMpnewsMsgOrder [touser=" + touser + ", msgtype=" + msgtype + ", mpnews=" + mpnews + "]";
	}

}
